package o;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.io.IOException;

public class ww implements se<Uri, Bitmap> {
    private final uc ˋ;
    private final xn ˏ;

    public /* synthetic */ boolean ˊ(@NonNull Object obj, @NonNull sc scVar) throws IOException {
        return ˋ((Uri) obj, scVar);
    }

    @Nullable
    public /* synthetic */ tx ˎ(@NonNull Object obj, int i, int i2, @NonNull sc scVar) throws IOException {
        return ˊ((Uri) obj, i, i2, scVar);
    }

    public ww(xn xnVar, uc ucVar) {
        this.ˏ = xnVar;
        this.ˋ = ucVar;
    }

    public boolean ˋ(@NonNull Uri uri, @NonNull sc scVar) {
        return "android.resource".equals(uri.getScheme());
    }

    @Nullable
    public tx<Bitmap> ˊ(@NonNull Uri uri, int i, int i2, @NonNull sc scVar) {
        tx ˎ = this.ˏ.ˎ(uri, i, i2, scVar);
        if (ˎ == null) {
            return null;
        }
        return wt.ˋ(this.ˋ, (Drawable) ˎ.ˋ(), i, i2);
    }
}
